home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 September
/
Chip_2004-09_cd1.bin
/
program
/
delphi
/
download
/
nastroje
/
97.mpth_10[1].exe
/
{app}
/
scripts
/
Fill Data.mps
< prev
next >
Wrap
Text File
|
2004-04-12
|
923b
|
41 lines
= fill with calculated data
option globalvars 1
var start dword count dword val byte increment byte editorf file
if currentfile == ""
editorf = fileopen('::new','c')
else
editorf = fileopen('::current', 'rw')
endif
number_radix = 10
number_prefix = ''
number_suffix = ''
start = dword(input("Fill file","Enter start position",text(filegetprop(editorf, 'selstart'))))
if filegetprop(editorf, 'selcount') == 0
count = filesize(editorf) - start
else
count = filegetprop(editorf, 'selcount')
endif
count = dword(input("Fill file", "Enter count", Text(count)))
val = byte(input("Fill file","Enter start value",'0'))
increment = byte(input("Fill file","Enter increment",'1'))
fileseek editorf start
loop schleife count
showprogress 100, 100
fileclose editorf
end
@@schleife
filewrite editorf val
inc val, increment
showprogress count+start, filepos(editorf)-start
return